package org.jdns.jfreechess.server;

import org.jdns.jfreechess.server.commands.Command;

import io.netty.channel.Channel;

/**
 * This is a special command that handles the case when the user enters an unknown command.
 */
public class UnknownCommand implements Command {
  @CommandHandler
  public void handleUnknownCommand(@UserCommand String commandName, Channel channel) {
    channel.write("Unknown command: " + commandName);
  }
}
